credit2: avoid to shadow the variable "cur" in runq_tickle
authorJulien Grall <julien.grall@citrix.com>
Thu, 29 Oct 2015 11:23:53 +0000 (12:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Oct 2015 11:23:53 +0000 (12:23 +0100)
commit568ff32927ecc68765973ad5b590b48e045dee4a
tree81fd07f7401145d7ab11fd6383f7848d4bd5ac2f
parent4c09af65a9afeabd381b132a21dd8eaeee7e8437
credit2: avoid to shadow the variable "cur" in runq_tickle

The variable "cur" is declared twice within "cur". However the top
declaration could be re-used avoiding re-declaring another time the
variable.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/sched_credit2.c